<template>
	<view class="box">
		<top-bar>
			<template #left>
				<image src="../../static/images/login/back.png" @tap="back" style="width: 44rpx;height: 44rpx;"></image>
			</template>
			<template #center>
				<text style="font-size: 40rpx;">QrCode</text>
			</template>
			<template #right>
				<view style="width: 60rpx;">
				</view>
			</template>
		</top-bar>
		<view class="text">
			二维码识别结果：{{detail}}
		</view>
	</view>
</template>

<script>
	import TopBar from "../../components/top-bar/top-bar.vue"
	export default {
		data() {
			return {
				detail: ""
			}
		},
		components: {
			TopBar
		},
		onLoad(option) {
			this.detail = option
			console.log(option, "二维码信息 detail");
		},
		methods: {
			back() {
				uni.navigateBack()
			}
		}
	}
</script>

<style scoped>
	.box {
		margin-top: 88rpx;
	}
</style>